package com.cloudstore.app.a4af6d48384984d889eabd9fd40eb0d15.dao;

import com.cloudstore.app.a4af6d48384984d889eabd9fd40eb0d15.dao.Dao_Salary;
import com.cloudstore.app.a4af6d48384984d889eabd9fd40eb0d15.dao.Dao_SalaryFactory;

public class Dao_SalaryFactory {
	private static Dao_SalaryFactory df = new Dao_SalaryFactory();
	
	public static Dao_SalaryFactory getInstance(){
		return df;
	}
	
	public Dao_Salary getDao(String name) {
		Dao_Salary d = null;
		try {
			d = (Dao_Salary) Class.forName("com.cloudstore.app.a4af6d48384984d889eabd9fd40eb0d15.dao."+name).newInstance();
		} catch (InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return d;
	}
}